<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>视频预览</title>
	<meta name="decorator" content="default"/>
	<script src="${ctxStatic}/video/js/video.min.js" type="text/javascript"></script>
	<link href="${ctxStatic}/video/css/video-js.css" type="text/css" rel="stylesheet" />
	<script type="text/javascript">

	</script>
</head>
<body style="overflow: hidden">
	<video id="my-video" class="video-js" controls preload="auto" width="450" height="350" data-setup="{}">
		<c:forEach items="${videoList}" var="video">
			<source src="${fns:getDictValue('website','website','')}${video.path}"
					type="video/${video.name}">
		</c:forEach>
	</video>
	<script type="text/javascript">
		var myPlayer = videojs('my-video');
		videojs("my-video").ready(function(){
			var myPlayer = this;
			myPlayer.play();
		});
	</script>
</body>
</html>